package com.flea.hclv.service;

import com.flea.hclv.model.entity.vo.HTravelGroupChargePersonVo;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.flea.hclv.model.entity.HTravelGroup;
import com.flea.hclv.model.entity.HVisitor;
import com.flea.hclv.util.ServerResponse;
import com.flea.system.bean.FleaPage;

public interface HTourGroupVisitorService {
	ServerResponse<FleaPage<HVisitor>> findAllUserByGroupIdPaging(
			int curPage, int pageSize, String groupId);

	ServerResponse<String> findAllUserByGroupId(String groupId, HttpServletResponse response);

	ServerResponse<HTravelGroup> updateStatusToOk(String groupId,HttpServletRequest request)
      throws Exception;

  /**
   * 添加旅游团负责人
   * @param request
   * @param pvo
   * @return
   * @throws Exception
   */
  ServerResponse addGroupChargePerson(HttpServletRequest request, HTravelGroupChargePersonVo pvo) throws Exception;

  /**
   * 设置团的状态为回团状态
   * @param groupId
   * @param request
   * @return
   * @throws Exception
   */
  ServerResponse<HTravelGroup> updateStatusIsBack(String groupId, HttpServletRequest request)throws Exception;

  /**
   * 设置团关闭状态，回团状态才可以进行使用
   * @param groupId
   * @param request
   * @return
   * @throws Exception
   */
  ServerResponse<HTravelGroup> updateStatusIsClose(String groupId, HttpServletRequest request)throws Exception;;

  ServerResponse<HTravelGroup> updateStatusToUnOk(String groupId, HttpServletRequest request)throws Exception;
}
